// src/styles/personal.module.scss
@use "color";

.page {
  background: color.$bg;

  .summary {
    //width: 100%;
    height: 63.47vw;
    background: linear-gradient(180deg, #2cb5a575 0%, #2cb5a500 100%);
    padding: 16.8vw 3.33vw 5.33vw 3.33vw;
    .user {
      display: flex;
      align-items: center;
      .avatar {
        width: 18.4vw;
        height: 18.4vw;
        overflow: hidden;
        border-radius: 50%;
        background: color.$bg;
        position: relative;
        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }
      .name {
        padding-left: 3.2vw;
        span {
          font-size: 4.8vw;
          padding-bottom: 1.87vw;
          display: block;
        }
        svg {
          font-size: 4.27vw;
          color: color.$main;
        }
      }
    }
    .statistics {
      display: flex;
      justify-content: space-between;
      list-style:none;
      margin-top: 5.33vw;
      padding: 0 5.33vw;
      span {
        display: block;
        text-align: center;
        &:first-child {
          font-weight: bold;
          font-size: 5.6vw;
        }
        &:last-child {
          font-size: 3.47vw;
          color: #979797;
        }
      }
    }
  }
  .order {
    margin: 0 4vw 2.67vw 4vw;
    background: #fff;
    padding: 4vw;
    .top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 5.33vw;
      h5 {
        font-size: 4.27vw;
        font-weight: 500;
      }
      a {
        color: color.$tip;
        font-size: 3.47vw;
      }
    }
    .list {
      display: flex;
      justify-content: space-between;
      padding-inline-start: 0px;
      li {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      .imgContainer {
        width: 7.2vw;
        height: 7.2vw;
        position: relative;
        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
        em {
          position: absolute;
          padding: 0.27vw 1.6vw;
          border-radius: 2vw;
          text-align:center;
          background: color.$price;
          color: #FFF;
          right: -2vw;
          top: -2vw;
          font-style: normal;
          font-size: 3.2vw;
        }
      }
      span {
        font-size: 3.2vw;
        margin-top: 1.33vw;
      }
    }
  }
  .shortcuts {
    margin: 0 4vw 0 4vw;
    background: #fff;
    padding: 4vw;
    .title {
      font-size: 4.27vw;
      font-weight: 500;
      margin-bottom: 5.33vw;
    }
    .list {
      li {
        display: flex;
        align-items: center;
        width: 100%;
        margin-bottom: 6.67vw;
        position: relative;
        &:last-child {
          margin-bottom: 0;
        }
        .imgContainer {
          width: 5.33vw;
          height: 5.33vw;
          overflow: hidden;
          img {
            width: 100%;
            height: 100%;
          }
        }
        span {
          font-size: 3.73vw;
          margin-left: 3.33vw;
        }
        svg {
          position: absolute;
          right: 0;
        }
      }
    }
  }
  .logout {
    padding: 4.53vw 0;
    text-align: center;
    font-size: 3.73vw;
    color: color.$price;
  }
  .inquiring {
    margin: 0 4vw 2.67vw 4vw;
    background: #fff;
    padding: 4vw;
    h5 {
      font-size: 4.27vw;
      font-weight: 500;
    }
    .content {
      margin-top: 5.33vw;
    }
    .item {
      display: flex;
      align-items: center;
      .avatar {
        width: 12vw;
        height: 12vw;
        overflow: hidden;
        border-radius: 50%;
        margin-right: 2vw;
        img {
          width: 100%;
          height: 100%;
          object-fit: contain;
        }
      }
      .info {
        width: 52vw;
        margin-right: 1.33vw;
        .doctor {
          span {
            font-size: 4vw;
            font-weight: 500;
            color: color.$text_2;
            margin-right: 1.5vw;
          }
          i {
            font-style: normal;
            font-size: 3.4vw;
            color: color.$text_3;
          }
        }
        .hospital {
          display: flex;
          align-items: flex-start;
          margin-top: 1.33vw;
          span {
            padding: 0.53vw 1.07vw;
            background: #677fff;
            font-size: 2.67vw;
            color: #fff;
            margin-right: 1.33vw;
            white-space: nowrap;
          }
          i {
            font-style: normal;
            font-size: 3.2vw;
            white-space: nowrap;
            display: block;
            text-overflow: ellipsis;
            overflow: hidden;
          }
        }
      }
      .consult {
        width: 17vw;
        height: 7.73vw;
        border-radius: 7.33vw;
        background: #2cb5a519;
        color: #2cb5a5;
        font-size: 3.2vw;
        text-align: center;
        line-height: 7.73vw;
      }
    }
    .indicator {
      display: flex;
      justify-content: center;
      margin-top: 4vw;
      span {
        width: 2vw;
        height: 1.33vw;
        border-radius: 1.07vw;
        background: #eaf8f6;
        transition: all 0.4s;
        margin: 0 0.67vw;
        &.active {
          width: 1.33vw;
          height: 1.33vw;
          border-radius: 50%;
          background: #2cb5a5;
        }
      }
    }
  }
}